//
//  BreakDownManager.h
//  resume
//
//  Created by DanielYuan on 2018/9/25.
//  Copyright © 2018年 DanielYuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>

typedef void (^successBlock) (NSString *filePath);
typedef void (^failBlock) (NSError *error);
typedef void (^progressBlock) (float progress);



@interface BreakDownManager : CDVPlugin<NSURLSessionDelegate>
@property (nonatomic, copy) successBlock successBlock;
@property (nonatomic, copy) failBlock failBlock;
@property (nonatomic, copy) progressBlock progressBlock;


- (void)startDownload:(CDVInvokedUrlCommand *)command;
- (void)stopDownload:(CDVInvokedUrlCommand *)command;
@end


